package JAVA基础01.方法的定义和调用.方法的重载;

//方法的重载：就是方法名相同参数列表不同
public class text {
    public static void main(String[] args) {

    }

    public static boolean compare(int a, int b) {
        return a == b;
    }

    public static boolean compare(long a, long b) {
        return a == b;
    }

    public static boolean compare(double a, double b) {
        return a == b;
    }

}
